package comday02.itheima01;

public class Demo10逻辑运算符 {

    public static void main(String[] args) {

        int a = 10;
        int b = 20;

        System.out.println(a>100 && b>100);    // false&&false      false
        System.out.println(a>100 || b>100);    // false||false      false

        System.out.println(a>10 && b>10);      //false&&true        false
        System.out.println(a>10 || b>10);      //false||true        true

        System.out.println(!(a>100));          //true

        System.out.println(a++>10 && b++>10);   //false&&不执行      false
        System.out.println(a);  // 11
        System.out.println(b);  // 20
    }
}
